package com.softeem.hbsm_video.controller;

import com.softeem.hbsm_video.entity.Admin;
import com.softeem.hbsm_video.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class VideoController {
    @Autowired
    private AdminService adminService;
    @GetMapping("/add")
    public boolean add(Admin admin){
        return adminService.save(admin);
    }

}
